package com.zhang.crm.controller;

import com.zhang.crm.pojo.TUser;
import com.zhang.crm.result.R;
import com.zhang.crm.util.JSONUtil;
import com.zhang.crm.util.JWTUtil;
import jakarta.annotation.Resource;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginController {

    @GetMapping("/api/freeLogin")
    public R loginMethod() {
        //空接口
        //基于token的校验通过security的过滤器实现
        return R.OK();
    }
}
